/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;

import java.math.BigDecimal;

/**
 *
 * @author pcsijbug
 */
public class PruebaBigDecimal {
    
    
    public static void main(String ar []){
        
        BigDecimal algo =  new BigDecimal("12.123565");
        algo.setScale(2);
        
        BigDecimal algo2 = new BigDecimal("15.125656");
        algo2.setScale(2);
        
        System.out.println(algo.add(algo2));
    
    
    }
}
